package com.gandong8.tablestore.web.domain.tablestore;

import com.gandong8.tablestore.tool.annotation.TsField;
import com.gandong8.tablestore.tool.annotation.TsTable;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TsTable(name = "test_table",multiIndexName = "test_table_multi_index")
public class TestTsDO implements Serializable {

    @TsField(name = "id", primaryKey = true, multiIndex = true)
    private String id;

    /**
     * 订单号
     */
    @TsField(name = "order_id")
    private String orderId;

    /**
     * 用户id
     */
    @TsField(name = "user_id")
    private String userId;

    /**
     * 用户id
     */
    @TsField(name = "price")
    private BigDecimal price;


    /**
     * 创建时间
     */
    @TsField(name = "created_at", multiIndex = true)
    private Date createdAt;

    /**
     * 修改时间
     */
    @TsField(name = "updated_at")
    private Date updatedAt;
}
